//
//  ModelOfData.m
//  RunningMan
//
//  Created by dllo on 16/5/19.
//  Copyright © 2016年 JohnnyB. All rights reserved.
//

#import "ModelOfData.h"
#import "ModelOfCover.h"
@implementation ModelOfData

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    if ([key isEqualToString:@"id"]) {
        self.videoId = value;
    }
    
    if ([key isEqualToString:@"description"]) {
        self.desc = value;
    }
    
    if ([key isEqualToString:@"category"]) {
        self.cate = value;
    }
    
    if ([key isEqualToString:@"cover"]) {
        self.modelOfCover = [[ModelOfCover alloc] init];
        [self.modelOfCover setValuesForKeysWithDictionary:value];
    }
    
}

@end
